package com.sumer.psychology.photo.domain.model;

import com.sumer.psychology.common.domain.model.AbstractDomainEvent;
import com.sumer.psychology.common.domain.model.Author;

/**
 * User: zhenguang.zhu
 * Date: 2014/8/29
 * Time: 15:02
 */
public class AlbumCreatedEvent extends AbstractDomainEvent {
    private AlbumId albumId;
    private String name;
    private String description;
    private Author owner;

    public AlbumCreatedEvent(AlbumId albumId, String name, String description, Author owner) {
        super();
        this.albumId = albumId;
        this.name = name;
        this.description = description;
        this.owner = authorFrom(owner);
    }

    public AlbumId albumId() {
        return albumId;
    }

    public String name() {
        return name;
    }

    public String description() {
        return description;
    }

    public Author owner() {
        return owner;
    }
}
